package phi.engine.actors
{
	import Box2D.Collision.Shapes.b2PolygonShape;
	import Box2D.Common.Math.b2Vec2;
	import Box2D.Dynamics.b2Body;
	import Box2D.Dynamics.b2BodyDef;
	
	import flash.display.DisplayObject;
	import flash.display.Sprite;
	import flash.geom.Point;
	
	import phi.engine.draw.RectangleSprite;
	import phi.engine.utils.PhiMathUtil;
	
	public class GroundActor extends PolygonActor
	{
		public function GroundActor( height:Number = 10 )
		{
			super();

			var newOptions :ActorOptions = new ActorOptions();
			newOptions.size = new Point( engine.screenWidth, height );
			newOptions.startPosition = new Point( engine.screenWidth/2 , engine.screenHeight - height/2 );
			
			changeOptions( newOptions );
		}
	}
}